<?php

$city  = "San Francisco";
$state = "CA";
$event = "SIGGRAPH";

$location_vars = array("city", "state");
var_dump($location_vars);

//compact只需要变量的名字，然后会自动的去寻找它们的值
$result = compact("event", "nothing_here", $location_vars);
print_r($result);
var_dump($result);

?>

